import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;

// 引入字体的文件
import "./assets/font/iconfont.css";

//使用vue-ls设置
import Storage from "vue-ls";

Vue.use(Storage, {
    namespace: "pro__", // key prefix
    name: "ls", // name variable Vue.[ls] or this.[$ls],
    storage: "local", // storage name session, local, memory
});

// element-ui依赖
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/zh-CN";

Vue.use(ElementUI, {locale});

// vue-particles粒子动画实现
import VueParticles from "vue-particles";

Vue.use(VueParticles);

//引用路由守卫
import "@/permission";

//引用mock插件
// import "@/mock/mock";

//引入全局样式
import "@/styles/index.scss";

//vue-fragment使用
import Fragment from "vue-fragment";

Vue.use(Fragment.Plugin);

//高德地图参数
Vue.prototype.AMapKey = "0d609e346a5ee685f6d0389fbe439ab7";
Vue.prototype.AMapSecurityJsCode = "67c119af68231b6df0ae3ec50ec7e5e1";

//弹窗引用
import "@/components/dialog/FullScreenDirective";

// 将自动注册所有组件为全局组件
import dataV from "@jiaminghi/data-view";

Vue.use(dataV);

//echarts使用
import * as echarts from "echarts";

Vue.prototype.$echarts = echarts;

//使用vue-baidu-map
import BaiduMap from "vue-baidu-map-v3";

Vue.use(BaiduMap, {
    // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
    ak: "dpXWsgHGGzam9nnDyPPBm5lSDQWPZs92",
});

//注册语言相关
import i18n from "@/language/config";

new Vue({
    router,
    store,
    i18n,
    render: (h) => h(App),
}).$mount("#app");
